package com.treasure.mall.biz.entity.module;

import com.treasure.mall.biz.entity.BasePO;
import com.treasure.mall.zbq.common.constant.Constant;
import com.treasure.mall.zbq.common.ienum.banner.ModuleType;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import javax.persistence.*;
import java.time.LocalDateTime;

/**
 * 
 * 首页展位配置
 * <p>
 * +---------------------------------------------------------
 * * @package: com.treasure.mall.biz.entity.common
 * * @author: guomw (guomwchen@foxmail.com)
 * * @date: 2020/8/7 6:45 下午
 * * @since: V1.0.0
 * +---------------------------------------------------------
 * 注意：本内容仅限于内部传阅，禁止外泄以及用于其他的商业目的
 * 
 */
@Setter
@Getter
@Entity
@Table(name = "zb_module_config")
@Cacheable(false)
@NoArgsConstructor
public class ModulePO extends BasePO {

    /**
     * id
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id")
    private Long id;

    /**
     * 定时时间
     */
    @Column(name = "timing_time", columnDefinition = Constant.DATE_COLUMN_DEFINITION)
    private LocalDateTime timingTime;

    /**
     * 定时内容
     */
    @Column(name = "timing_content", length = 50)
    private String timingContent;

    /**
     * 模块类型
     * {@link com.treasure.mall.zbq.common.ienum.banner.ModuleType}
     */
    @Column(name = "module_type")
    private ModuleType moduleType;

    /**
     * 模块标题
     */
    @Column(name = "module_name", length = 20)
    private String moduleName;

    /**
     * 模块属性配置
     */
    @Column(name = "properties", columnDefinition = "longtext")
    private String properties;


}
